<?php
	include_once('header.php');
	if(session_id() == '')
		session_start();
	if(isset($_SESSION['uid'])){
		$uid = $_SESSION['uid'];
		require('conn.php');
		$questionsQuery = mysql_query("select qfid,name from questionForm where uid=$uid");
		$i = 1;	
		while($questionsArr = mysql_fetch_assoc($questionsQuery)){
			echo "<div>Q$i. <a href='question_list.php?id=".$questionsArr['qfid']."'>".$questionsArr['name']."</a></div>";
			$i++;
		}
		mysql_close($connect);
	}
	else{
?>
		Please <a href='login.php'>Login</a>!
<?php
	}
?>
